
<template>
  <div >
    <div class="headWrap">
      <div class="content_title">管理日志</div>
      <div  class="search">
        <el-form :inline="true"  class="demo-form-inline searchBox">
          <el-form-item label="关键字">
            <el-input
              placeholder="关键词搜索"
              icon="search"
              :on-icon-click="searchByWord">
            </el-input>
          </el-form-item>
        </el-form>
      </div>
    </div>
    <div >
      <el-tabs type="card" v-model="activeName" @click="handleClick">
        <el-tab-pane label="按最新添加显示" name="0"></el-tab-pane>
        <el-tab-pane label="按action显示" name="1"></el-tab-pane>
        <el-tab-pane label="按用户显示" name="2"></el-tab-pane>
        <el-tab-pane label="按公司显示" name="3"></el-tab-pane>
      </el-tabs>
      <el-table
        :data="tableData"
        stripe
        style="width: 100%">
        <el-table-column
          prop="date"
          label="用户ID">
        </el-table-column>
        <el-table-column
          prop="name"
          label="用户名称">
        </el-table-column>
        <el-table-column
          prop="address"
          label="公司ID">
        </el-table-column>
        <el-table-column
          prop="address"
          label="公司名称">
        </el-table-column>
        <el-table-column
          prop="address"
          label="module">
        </el-table-column>
        <el-table-column
          prop="address"
          label="action">
        </el-table-column>
        <el-table-column
          prop="address"
          label="querystring">
        </el-table-column>
        <el-table-column
          prop="querystring"
          label="IP">
        </el-table-column>
        <el-table-column
          prop=""
          label="时间">
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>


<script>
  export default {
    data () {
      return {
        tableData: [],
        activeName: '0'
      };
    },
    methods: {
      // 关键字搜索
      searchByWord () {
        alert('关键字搜索');
      },
      // 切换tab页签
      handleClick (tab, event) {
        this.activeName = tab.name;
        alert('切换Tab页签');
      },
      // 查看详情
      detail () {
        alert('查看详情');
      }
    },
    components: {},
    created: function () {
    }
  };
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
